/*
 *  Confidential and Proprietary                                                                
 Copyright 2008 By                                                                                     
 SGAI & Hewlett-Packard Development Company, L.P. 	              
 All Rights Reserved                                                                                  

 Project Name : SGAI  MES                                                                                                                                       
 Class Name   : NameSpaceSupport.java    
 Package      : com.hp.message.vo    
 */
package com.erdos.message.vo;

/**
 * this is for add namespace and prefix into the generated xml.
 @version     $Id: XmlNameSpaceSupport.java 9110 2012-03-08 02:08:48Z hubin $                                                          
 @author sunf
 @since  2008-9-10 
 */
public interface XmlNameSpaceSupport {
	/**
	 * for example: <rootElement></rootElement> <br>
	 * after add namespace, say, xmlns="http://mes/bom_download", it becomes:<br>
	 * <rootElement xmlns="http://mes/bom_download"> </rootElement><br>
	 * if prefix also provided, say prefix, then the result should be like: <br>
	 * <prefix:rootElement xmlns:prefix="http://mes/bom_download"> </prefix:rootElement>
	 * @return a String to append into the root element.
	 */
	public String getNameSpace();
	
	/**
	 * for example: <rootElement></rootElement> <br>
	 * after add prefix, say, prefix, it becomes:<br>
	 * <prefix:rootElement> </prefix:rootElement>
	 * @return a String to insert into the root element as the prefix.
	 */
	public String getPrefix();
	/**
	 * returns the xml declaration, such as <?xml version="1.0" encoding="utf-8"?>.
	 * @return a String of xml version declaration.
	 */
	public String getXmlVersionDeclaration();
}
